package com.example.demo.entity;

/**
 * @Author : 叶荻风
 * @create : 2024/4/16 15:15
 */
public class ExampleBean {
    private AnotherBean beanOne;

    private YetAnotherBean beanTwo;

    private int i;
    private int j;

    public void setBeanOne(AnotherBean beanOne) {
        this.beanOne = beanOne;
    }

    public void setBeanTwo(YetAnotherBean beanTwo) {
        this.beanTwo = beanTwo;
    }

    public void setIntegerProperty(int i) {
        this.i = i;
    }

    public ExampleBean(AnotherBean beanOne, YetAnotherBean beanTwo, int i,int j) {
        this.beanOne = beanOne;
        this.beanTwo = beanTwo;
        this.i = i;
        this.j = j;
    }

    public ExampleBean() {
    }

    @Override
    public String toString() {
        return "ExampleBean{" +
                "beanOne=" + beanOne +
                ", beanTwo=" + beanTwo +
                ", i=" + i +
                ", j=" + j +
                '}';
    }

    public static ExampleBean createInstance(AnotherBean beanOne, YetAnotherBean beanTwo, int i, int j){
        return new ExampleBean(beanOne, beanTwo, i,j);

    }
}
